@import '../../do-order.wxss';
/************* 上传 **********/
.uploader-files {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.uploader-file {
  position: relative;
  margin-right: 5px;
  margin-bottom: 10px;
  width: 200rpx;
  height: 200rpx;
  border-radius: 3px;
}

.uploader-img {
  display: block;
  width: 200rpx;
  height: 200rpx;
}

.uploader-video {
  display: block;
  width: 200rpx;
  height: 200rpx;
}

.uploader-box {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  width: 200rpx;
  height: 200rpx;
  border: 1px solid #D9D9D9;
  background-color: #C0C0C0;
  border-radius: 3px;
}

.icon-cuo {
  position: absolute;
  right: 0;
  top: 5upx;
  background: linear-gradient(90deg, rgba(251, 91, 80, 1) 0%, rgba(240, 45, 51, 1) 100%);
  color: #FFFFFF;
  z-index: 999;
  border-top-right-radius: 20upx;
  border-bottom-left-radius: 20upx;
}

.icon-del-box {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 3px;
  right: 3px;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, .5);
  z-index: 2;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.icon-del {
  width: 10px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
}

.rotate {
  position: absolute;
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
}

.upload-img {
  width: 200rpx;
  height: 200rpx;
}

/************* 上传 **********/

.record-box {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100vh;
  z-index: 10008;

  .record-bg {
    position: absolute;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, .9);
  }

  .record-btn {
    position: absolute;
    bottom: 80rpx;
    left: 50%;
    margin-left: -80rpx;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 160rpx;
    height: 160rpx;
    border-radius: 50%;
    background: var(--color-error);
    color: #fff;
    font-size: 28rpx;
  }

  .countdown {
    position: absolute;
    bottom: 300rpx;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 32rpx;
    text-align: center;
    color: #fff;
    font-weight: bold;
  }

  .animation-box {
    position: absolute;
    top: 100rpx;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 200rpx;

    .animation-bar {
      width: 20rpx;
      margin: 0 6rpx;
      background: #7ed321;
      border-radius: 6rpx;
      // animation: wave 1s infinite alternate;
    }
  }
}

// 录音
.record-container {
  .record-btns {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 40rpx 0;

    .record-btn {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: 160rpx;
      height: 160rpx;
      color: #fff;
      font-size: 28rpx;
      margin-left: 40rpx;
      margin-right: 40rpx;
      border-radius: 50%;
      .iconfont{
        font-size: 40rpx;
        margin-bottom: 10rpx;
      }

      &.start {
        background: #4ebe67;
      }

      &.upload {
        background: #1b80fe;
      }
    }
  }

  .record-list-wrap {
    padding: 30rpx 20rpx;
    margin-bottom: 30rpx;
    background-color: #f8f9fc;
    border-radius: 16rpx;

    .record-list {
      .record-item {
        display: flex;
        align-items: center;
        height: 70rpx;
        color: var(--color-priamry);

        .record-item-name {
          font-size: 28rpx;
        }

        .record-item-dur {
          flex: 1;
          text-align: center;
          font-size: 34rpx;
          font-weight: bold;
        }

        .record-item-oper {
          margin-left: 40rpx;

          .play-icon {
            font-size: 40rpx;
            color: var(--color-priamry);
          }

          .del-icon {
            font-size: 40rpx;
            color: var(--color-warning);
          }
        }
      }
    }
  }


}

.record-play {
  position: fixed;
  top: 50%;
  right: 0;
  margin-top: -40px;
  width: 150rpx;
  height: 80rpx;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8f9fc;
  border-radius: 50rpx 0 0 50rpx;
  z-index: 10001;
  .close-play{
    position: absolute;
    right: 0;
    top: 0;
    font-size: 30rpx;
    color: var(--secondary-text);
  }
  .record-play-bar {
    width: 6rpx;
    margin: 0 4rpx;
    background: #7ed321;
    border-radius: 4rpx;
  }
}
.audio-wrap{
  flex: 1;
  .audio-item{
    display: block;
    width: 100% !important;
  }
}